const mongoose = require("mongoose"); //引入Mongoose
const Schema = mongoose.Schema; //声明Schema
// 热门搜索词
const keywordSchema = new Schema({
  word: { type: String, unique: true },
  num: { type: Number }
});

mongoose.model("keyword", keywordSchema);
